"""
Copyright 2007, Thomas Dejanovic.

This is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of
the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this software; if not, write to the Free
Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
02110-1301 USA, or see the FSF site: http://www.fsf.org.
"""

global hatchBlock

#      h6
#     /  \
#    h5   h4
#   /  \    \
#  h1   h2   h3
#   \
#    h0
h0 = HatchNodePhysical('h0', unique_name='h', bit_width=8, stringProp='hey!')
h1 = HatchNodePhysical('h1', h0, unique_name='h', bit_width=10, stringProp='hey!!')
h2 = HatchNodePhysical('h2', unique_name='h', bit_width=24)
h3 = HatchNodePhysical('h3', unique_name='h', bit_width=32)
h4 = HatchNodePhysical('h4', h3, unique_name='h')
h5 = HatchNodePhysical('h5', h2, h1, unique_name='h')
h6 = HatchNodePhysical('h6', h5, h4, unique_name='h')

hatchBlock = h6


